package sethomework;

import java.util.HashSet;

public class set2 {
    public static void main(String[] args) {
        student stu1=new student("张三",20,"男");
        student stu2=new student("李四",21,"女");
        student stu3=new student("张三",20,"男");
        HashSet<student> sset=new HashSet<>();
        sset.add(stu1);
        sset.add(stu2);
        sset.add(stu3);
      for(student student:sset){
          System.out.println(student);
      }
    }



}
